package info.jafe.common.util;

import android.content.Context;
import android.content.pm.ApplicationInfo;

import info.jafe.common.context.ContextProvider;

/**
 * Created by jafe chang on 2016/12/10.
 */

public class AppUtils {
    public static boolean isDebuggable() {
        Context context = ContextProvider.getContext();
        try {
            ApplicationInfo info = context.getApplicationInfo();
            return (info.flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0;
        } catch (Exception e) {
            return false;
        }
    }
}
